package com.tbit.main.service.impl;

import com.tbit.main.dao.core.UserMsgDao;
import com.tbit.main.pojo.UserMsg;
import com.tbit.main.service.UserMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author LMY
 * @create 2020-11-16 14:19
 * 用户消息
 */
@Service("userMsgService")
public class UserMsgServiceImpl implements UserMsgService {

    @Autowired
    private UserMsgDao userMsgDao;

    @Override
    public void insert(UserMsg userMsg) {
        userMsgDao.insert(userMsg);
    }

    @Override
    public void update(UserMsg userMsg) {
        userMsgDao.update(userMsg);
    }

    @Override
    public UserMsg getByUserMsgId(Integer userMsgId) {
        return userMsgDao.getByUserMsgId(userMsgId);
    }
}
